package com.jiyi.widget.picselect;


import java.io.File;
import java.io.Serializable;

/**
 * ͼƬ����
 * 
 * @author Administrator
 * 
 */
public class ImageItem implements Serializable ,Comparable<ImageItem>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 2220162027982130712L;
	public String imageId;
	public String thumbnailPath;
	public String imagePath;
	public boolean isSelected = false;
	@Override
	public int compareTo(ImageItem another) {
		File another_file = new File(another.imagePath);
		File this_file = new File(this.imagePath);
		if(this_file.lastModified()<another_file.lastModified()){  
	        return 1;//����޸ĵ���Ƭ��ǰ  
	    }else{  
	        return -1;  
	    }  
	}
}
